class TeacherA:
    def __init__(self):
        self.subject = '数学'

    def tech(self):
        print("教数学")

    def techOther(self):
        print("教体育")


class TeacherB:

    def __init__(self):
        self.subject = '语文'

    def tech(self):
        print("教语文")


class TeacherC(TeacherA, TeacherB):

    def __init__(self):
        super().__init__()


teacher = TeacherC()
teacher.tech()
teacher.techOther()
print(teacher.subject)
